package com.semlab.client.fwk.ap;

import com.google.gwt.activity.shared.ActivityMapper;

/**
 * @author Slobodan
 * maps place to an activity
 */
public class MappingsEntry {

	//used for later processing when place is tied to its parent
	private Place parentPlace;
	private Place place;
	private ActivityMapper activityMapper;

	public MappingsEntry(Place place, ActivityMapper activityMapper) {
		this.place = place;
		this.activityMapper = activityMapper;
	}

	public Place getPlace() {
		return place;
	}

	public ActivityMapper getActivityMapper() {
		return activityMapper;
	}

	public void setActivityMapper(ActivityMapper activityMapper) {
		this.activityMapper = activityMapper;
	}
	
	public Place getParentPlace() {
		return parentPlace;
	}

	public void setParentPlace(Place parentPlace) {
		this.parentPlace = parentPlace;
	}

	@Override
	public String toString() {
		return "MappingsEntry [place=" + place + ", activityMapper=" + activityMapper + "]";
	}

}